package com.macro.mall.controller.callbak;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;
import java.util.List;

@Data
public class PayResultNotification {
    @JsonAlias({"Event", "event"})
    private String event;

    @JsonAlias({"OrderType", "orderType"})
    private Integer orderType;

    @JsonAlias({"OrderId", "orderId"})
    private String orderId;

    @JsonAlias({"OutOrderId", "outOrderId"})
    private String outOrderId;

    @JsonAlias({"OutBookOrderId", "outBookOrderId"})
    private String outBookOrderId;

    @JsonAlias({"Status", "status"})
    private Integer status;

    @JsonAlias({"PayChannel", "payChannel"})
    private Integer payChannel;

    @JsonAlias({"TotalAmount", "totalAmount"})
    private Long totalAmount;

    @JsonAlias({"ProductType", "productType"})
    private Integer productType;

    @JsonAlias({"PayTime", "payTime"})
    private Integer payTime;

    @JsonAlias({"VoucherInfos", "voucherInfos"})
    private List<VoucherInfo> voucherInfos;

    @Data
    public static class VoucherInfo {
        @JsonAlias({"VoucherCode", "voucherCode"})
        private String voucherCode;
    }
}
